/* 基础样式变量 */
:root {
  /* 颜色变量 */
  --el-color-primary: #409eff;
  --el-color-success: #67c23a;
  --el-color-warning: #e6a23c;
  --el-color-danger: #f56c6c;
  --el-color-info: #909399;
  
  /* 文本颜色 */
  --el-text-color-primary: #303133;
  --el-text-color-regular: #606266;
  --el-text-color-secondary: #909399;
  
  /* 边框颜色 */
  --el-border-color: #ebeef5;
  --el-border-color-light: #e4e7ed;
  
  /* 背景颜色 */
  --el-bg-color: #ffffff;
  --el-bg-color-page: #f5f7fa;
  
  /* 字体设置 */
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  
  /* 暗色模式支持 */
  color-scheme: light dark;
  color: var(--el-text-color-primary);
  background-color: var(--el-bg-color);
}

/* 基础HTML元素重置 */
html, body, #app {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

/* 主体样式 */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--el-bg-color-page);
}

/* 应用容器 */
#app, .app-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

/* 通用页面容器 */
.page-container {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
}

/* 组件容器 */
.card-container {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* 页头样式 */
.page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--el-border-color);
}

/* 页脚样式 */
.page-footer {
  text-align: center;
  color: var(--el-text-color-secondary);
  font-size: 14px;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--el-border-color);
}

/* 内容居中容器 */
.centered-content {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* 链接样式 */
a {
  font-weight: 500;
  color: var(--el-color-primary);
  text-decoration: inherit;
  transition: color 0.3s;
}

a:hover {
  color: #66b1ff;
}

/* 标题样式 */
h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.6rem;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: 0.8rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* 渐变文字效果 */
.gradient-text {
  background: linear-gradient(90deg, var(--el-color-primary), var(--el-color-success));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 常用动画效果 */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
  :root {
    --el-bg-color: #1e1e1e;
    --el-bg-color-page: #141414;
    --el-text-color-primary: #e0e0e0;
    --el-text-color-regular: #c0c0c0;
    --el-text-color-secondary: #a0a0a0;
    --el-border-color: #333333;
    --el-border-color-light: #444444;
    
    color: var(--el-text-color-primary);
    background-color: var(--el-bg-color);
  }
}

/* 响应式布局 */
@media (max-width: 768px) {
  .card-container {
    padding: 1rem;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
}
